package com.bosssoft.user.permission.center.serve.pojo.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RoleVO {
    @ApiModelProperty("角色id")
    @JsonSerialize(using= ToStringSerializer.class)
    @NotNull
    private Long id;


    @ApiModelProperty("名称")
    @NotNull
    private String name;


    @ApiModelProperty("角色编码")
    @NotNull
    private String code;


    @ApiModelProperty("角色备注")
    @NotNull
    private String remark;


    @ApiModelProperty("角色状态")
    @NotNull
    private Byte status;


    @ApiModelProperty("角色公司id")
    @JsonSerialize(using= ToStringSerializer.class)
    @NotNull
    private String companyName;


    @ApiModelProperty("角色组织id")
    @JsonSerialize(using= ToStringSerializer.class)
    @NotNull
    private String orgName;
}
